$(function() {
    $("#form").validate({
        rules : {
            "cotherrelationid" : {
               required : true
            },
            "cotherrelationrelationshipcategory" : {
               required : true
            },
            "cotherrelationrelatedtype" : {
               required : true
            },
            "cotherrelationrelatedname" : {
               required : true
            },
        },
    messages : {
        "cotherrelationid" : {
            required : '请填写!'
        },
        "cotherrelationrelationshipcategory" : {
            required : '请填写关联关系类别!'
        },
        "cotherrelationrelatedtype" : {
            required : '请填写关联人类型!'
        },
        "cotherrelationrelatedname" : {
            required : '请填写关联人名称姓名!'
        },
       }
});
});
